home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / misc / bitmania.lha / Docs / Bitmania.doc < prev    next >
Encoding:
Text File  |  1994-10-15  |  8.5 KB  |  323 lines

  1.  
  2.                 Bitmania V1.2 (07/03/95) - By Luca Ferraris
  3.  
  4.  
  5.     Bitmania V1.2 is a simple student oriented program which allows
  6.     user to convert a number in an other format.  
  7.     This is an improved version of Bitmania (the last version is V1.0).
  8.  
  9.     Features:
  10.     
  11.     - Decimal -> Binary
  12.     - Binary  -> Decimal
  13.     - Binary  -> Hexadecimal
  14.     - Hexadacimal -> Binary
  15.     - Decimal -> Hexadecimal
  16.     - Hexadecimal -> Decimal
  17.  
  18.     Bitmania is also able to convert a binary number in a code.
  19.     Supported codes are:
  20.  
  21.     - BCD (four types, see Use for them..)
  22.     - Grey
  23.  
  24.     Others Features are:
  25.  
  26.     - Factorial of a number
  27.     - Fibonacci's numbers
  28.     - Arithmetical operations
  29.     - Complements ( for binary numbers only!)
  30.  
  31.     Bitmania V1.2 has been written completly in AMOS Pro.
  32.  
  33.  
  34.                                New Features
  35.                                ------------
  36.  
  37.     - BCD 8-4-2-1   Corrected! (Sorry for the last wrong version...)
  38.     - BCD 2-4-2-1   New BCD code
  39.     - BCD Excess 3  An other BCD code...
  40.  
  41.     - Corrected bugs
  42.  
  43.  
  44.  
  45.                                Requirements
  46.                                ------------
  47.  
  48.     There are no particular requirements. I think Bitmania works fine
  49.     on all Amigas.
  50.  
  51.  
  52.                                Installation
  53.                                ------------
  54.     
  55.     Bitmania can be launched from disk but it can be easily installed
  56.     on an hard drive. There are no file of support and so,if you want
  57.     to install bitmania on your hard disk, copy the main file.
  58.     It's all!
  59.  
  60.  
  61.                                     Use
  62.                                     ---
  63.  
  64.     Bitmania is very easy to use. 
  65.     If you press the right mouse button, a menu will appear on the 
  66.     screen. You simply have to choice an option. There are five
  67.     menus. 
  68.  
  69.     The first is called Programs. It has only an option that quit
  70.     from program.
  71.  
  72.  
  73.     The second is called Convertions.This menu allows you to
  74.     insert a number to convert in an other format.
  75.  
  76.     EX. From Binary To Decimal
  77.  
  78.  
  79.     Third menu is called Calculations.
  80.     There are six voices under this menu:
  81.  
  82.     - Sum
  83.     - Subtraction
  84.     - Multiplication
  85.     - Division
  86.     - Complement to 1
  87.     - Complement to 2
  88.  
  89.     The first four options allows you to execute simple operations.
  90.     The last two are to calculate complements of a binary number.
  91.     
  92.     COMPLEMENT To 1
  93.     ---------------
  94.     Complement to 1 work in this way.
  95.     It is defined such as:
  96.  
  97.     ((r^n)-1-X)
  98.  
  99.     where r is the base and X is your number.
  100.     For binary numbers, complement to 1 is very simple. Every bit is
  101.     tested and it is changed to its negative ( 0->1  1->0 ).
  102.     
  103.     Positive numbers are represented with their module.
  104.     Negative numbers are represented with the complement of the correspon-
  105.     dent positive number,sign bit included.
  106.     There are two representations of number 0
  107.  
  108.     +0   0
  109.     -0   1
  110.  
  111.     COMPLEMENT To 2
  112.     ---------------
  113.     Complement to 2 is similar to complement to 1.
  114.     In this case, it is defined like:
  115.  
  116.     ((r^n)-X)
  117.    
  118.     where r is the base and X is the number to complement.
  119.     For binary numbers complement to 2 work in this way:
  120.     from right to left, every bit is unchanged till the bit to test is
  121.     equal to 1 (this bit is also unchanged). All the others bit from the
  122.     first bit setted to 1 are changed to their negative.
  123.  
  124.     Positive numbers are represented with their module, and the sign bit 
  125.     is setted to 1.
  126.     Negative numbers are represented with the complement of the correspon-
  127.     dent positive number, sign bit included.
  128.  
  129.     Example.
  130.  
  131.     +4   0100   
  132.  
  133.     -4   0100 --> 1100
  134.  
  135.     +20  00100
  136.  
  137.     -20  11100
  138.  
  139.     There is only a representation for number 0 (because number 0 doesn't
  140.     contain bit setted to 1 and so is impossible to complement it!)
  141.  
  142.     
  143.     The fourth menu is called Others.
  144.     There are two voices under it:
  145.    
  146.     - Factorial
  147.     - Fibonacci
  148.  
  149.     Factorial allows you to calculate factorial of a number.
  150.     
  151.     EX. Factorial of 3 is 6 (3!=1x2x3)
  152.  
  153.     Fibonacci's numbers are numbers growing faster than normal.
  154.     The grow is based on a simple formula:
  155.  
  156.     F(n+2)=F(n)+F(n+1)
  157.  
  158.     F(0)=0 : F(1)=1 : F(2)=2 : F(3)=3
  159.  
  160.     F(3+2)=F(3)+F(3+1) --> F(5)=3+5=8
  161.  
  162.     The last menu is called Codes.
  163.     In this version are supported four codes. They are:
  164.     
  165.     - BCD 8-4-2-1
  166.     - BCD 2-4-2-1
  167.     - BCD Excess 3
  168.     - Grey
  169.  
  170.     BCD 8-4-2-1
  171.     -----------
  172.     A decimal number is converted to BCD code in a simple way.
  173.     Every decimal digit is coverted in the equivalent binary number.
  174.     There are 10 decimal digits ranging between 0 & 9 and so there
  175.     are 10 binary numbers.
  176.  
  177.     EX.
  178.  
  179.     973  ---->  1001 0111 0011
  180.                 _  _ _  _ _  _
  181.                  \/   \/   \/
  182.                  9    7    3
  183.  
  184.    BCD 2-4-2-1
  185.    -----------
  186.    This BCD code is based on complement to 1.
  187.    Numbers from 0 to 4 are converted to the equivalent binary numbers and
  188.    numbers >4 are the complement of a previous number.
  189.  
  190.    Formula is:
  191.  
  192.    Ad=x    ac=bin(x)
  193.              __
  194.    9-x=y   y=ac
  195.  
  196.    EX:
  197.    
  198.    Ad=2  ac=0010
  199.            __
  200.    9-2=7   ac=1101
  201.  
  202.    So, there is a table like this:
  203.  
  204.    ------------------------------
  205.    Decimal digit |  Binary Code |
  206.    ------------------------------
  207.          0             0000
  208.          1             0001
  209.          2             0010
  210.          3             0011
  211.          4             0100
  212.          5             1011
  213.          6             1100
  214.          7             1101
  215.          8             1110
  216.          9             1111
  217.    ------------------------------
  218.  
  219.    BCD Excess 3
  220.    ------------
  221.    To convert a decimal number in this code, every decimal digit is
  222.    incremented by 3 and after it is converted in the equivalent 
  223.    binary number.
  224.    
  225.    EX.   184 ---> 4 11 7 --->  0100  1011  0111
  226.  
  227.    GREY
  228.    ----  
  229.    For the Grey code is supported the conversion from binary to Grey.
  230.    This conversion is based on a simple algorithm:
  231.  
  232.    1) Add a 0 to the left of the binary number
  233.    2) Check every couple of bit and  convert them in the correspondent
  234.       Grey value:
  235.  
  236.       BIT      GREY
  237.  
  238.        00       0
  239.        01       1
  240.        10       1
  241.        11       0
  242.  
  243.       This is a simple EX-OR operation.
  244.  
  245.  
  246.                               Program History
  247.                               ---------------
  248.  
  249.     * Version 1.0  The first version of Bitmania.
  250.                    It came out on 28/02/95.
  251.                    Main features:
  252.  
  253.                     - Conversions
  254.                     - Operations
  255.                     - BCD & Grey codes
  256.                     - Other
  257.  
  258.                    In that version there was a wrong code conversion (BCD).
  259.  
  260.     * Version 1.2  This! A lot of things have been corrected and added.
  261.                    
  262.  
  263.  
  264.                                Next Versions
  265.                                -------------
  266.  
  267.     Next versions of Bitmania will include more features. 
  268.     In this version the number of supported codes has been incremented
  269.     and so there are only few things to do :-)
  270.     
  271.     - Shift and rotate options
  272.     - Octal numbers
  273.     - Printing options
  274.     - Debugging
  275.  
  276.     Look out on Aminet for them!
  277.  
  278.  
  279.  
  280.                                   Author
  281.                                   ------
  282.  
  283.     Well, i'm Luca Ferraris and i was born on 1974. I'm studying
  284.     at the department of Computer's Science at Turin, Italy.
  285.     I'm an happy owner of an A500 standard with two floppy drives
  286.     and i would like to buy an A4000/30. I know a lot of program-
  287.     ming languages, C,Basic, GWBasic (all basic!), Pascal... but
  288.     my favourite is AMOS Pro (i know it better than others!) and
  289.     i'm working on a lot of projects.
  290.     
  291.     At this time, you can find my Pattern Generator V1.1 Demo on 
  292.     Aminet in directory gfx/fract. It's shareware and i think 
  293.     it's a good product (it was my first AMOS Pro program).
  294.     I'm working on version 1.9, but currently i have problems with
  295.     an Out Of Memory Error and so i think it will be released very
  296.     later.
  297.  
  298.     You can contact me via e-mail at address:
  299.  
  300.     aldo@di.unito.it (specify in the subject that your mail is for
  301.                       Luca)
  302.  
  303.     If you want to write to me, well, my snail mail address is:
  304.  
  305.        Ferraris Luca
  306.        Via Nicola Porpora, 42
  307.        10154 - Turin
  308.        ITALY
  309.  
  310.     I hope you will enjoy with Bitmania. Hallo!
  311.  
  312.  
  313.  
  314.                             Copyrights
  315.     
  316.     Bitmania is absolutly a PD program. It can be included in PD col-
  317.     lections like Fish Disks, Aminet CDROMs and others.
  318.     You can distribute it to everyone you know.
  319.     The only limitation is: you cannot modify docs!
  320.  
  321.     © Luca Ferraris - 1994/95
  322.  
  323.